package com.unionpay.mpds.web.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;

@SuppressWarnings("serial")
public class DomainNameFilter extends HttpServlet implements Filter{

    protected FilterConfig filterConfig = null; //创建一个过滤器配置对象
    
	/**
	 * 初始化
	 */
	public void init(FilterConfig filterConfig) throws ServletException {
		this.filterConfig = filterConfig; //初始化过滤器的配置
	}
    
    /**
     * 执行
     */
	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
        chain.doFilter(request, response);
	}
	
	
	/**
    * 销毁
    */
    public void destroy() {
          this.filterConfig = null;
    }
    

}
